using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Adge.Models;
using Adge.BLL;
using NHibernate.Expression;
using Adge.Common;

namespace Adge.Web.UI
{
    public partial class links : AdgePageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                InitLinks();
            }
        }

        private void InitLinks()
        {
            //LinksInfo
            
            //lblCatame.Text = catname;
            AdgeArBase<LinksInfo> bllSub = new AdgeArBase<LinksInfo>();
            Order[] orders = new Order[] { Order.Desc("CreatedDate")};
            ICriterion[] criterias = new ICriterion[] { };
            
            lnkList.DataSource = bllSub.SlicedFindAll(0, AdgeConfig.MaxRecordNumber, orders, criterias);
            lnkList.DataBind();
            
        }
    }
}
